package com.xwdeshj.entity;

import javax.persistence.*;

/**
 * 记录匹配的店铺id，店铺名称
 */
@Entity(name = "xw_custom_shop")
public class XwCustomShop {
    /**
     * 匹配id
     */
    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 定制游加密id
     */
    @Column(name = "cust_encryptId")
    private String custEncryptid;

    /**
     * 用户加密id(为某用户定制的加密id)
     */
    @Column(name = "user_encryptId")
    private String userEncryptid;

    /**
     * 批量店铺加密id（来自于店铺信息）
     */
    @Column(name = "shop_encryptId")
    private String shopEncryptid;

    /**
     * 匹配的商家店铺名称
     */
    @Column(name = "shop_CompanyName")
    private String shopCompanyname;

    /**
     * 挑选类型（1：挑选农家，2：挑选景区）
     */
    @Column(name = "cust_type")
    private String custType;

    public XwCustomShop(){

    }

    public XwCustomShop(String custEncryptid, String userEncryptid, String shopEncryptid, String shopCompanyname, String custType) {
        this.custEncryptid = custEncryptid;
        this.userEncryptid = userEncryptid;
        this.shopEncryptid = shopEncryptid;
        this.shopCompanyname = shopCompanyname;
        this.custType = custType;
    }

    /**
     * 获取匹配id
     *
     * @return shop_id - 匹配id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getShopId() {
        return shopId;
    }

    /**
     * 设置匹配id
     *
     * @param shopId 匹配id
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取定制游加密id
     *
     * @return cust_encryptId - 定制游加密id
     */
    public String getCustEncryptid() {
        return custEncryptid;
    }

    /**
     * 设置定制游加密id
     *
     * @param custEncryptid 定制游加密id
     */
    public void setCustEncryptid(String custEncryptid) {
        this.custEncryptid = custEncryptid;
    }

    /**
     * 获取批量店铺加密id（来自于店铺信息）
     *
     * @return shop_encryptId - 批量店铺加密id（来自于店铺信息）
     */
    public String getShopEncryptid() {
        return shopEncryptid;
    }

    /**
     * 设置批量店铺加密id（来自于店铺信息）
     *
     * @param shopEncryptid 批量店铺加密id（来自于店铺信息）
     */
    public void setShopEncryptid(String shopEncryptid) {
        this.shopEncryptid = shopEncryptid;
    }

    /**
     * 获取匹配的商家店铺名称
     *
     * @return shop_CompanyName - 匹配的商家店铺名称
     */
    public String getShopCompanyname() {
        return shopCompanyname;
    }

    /**
     * 设置匹配的商家店铺名称
     *
     * @param shopCompanyname 匹配的商家店铺名称
     */
    public void setShopCompanyname(String shopCompanyname) {
        this.shopCompanyname = shopCompanyname;
    }

    public String getCustType() {
        return custType;
    }

    public void setCustType(String custType) {
        this.custType = custType;
    }

    public String getUserEncryptid() {

        return userEncryptid;
    }

    public void setUserEncryptid(String userEncryptid) {
        this.userEncryptid = userEncryptid;
    }

    @Override
    public String toString() {
        return "XwCustomShop{" +
                "shopId=" + shopId +
                ", custEncryptid='" + custEncryptid + '\'' +
                ", userEncryptid='" + userEncryptid + '\'' +
                ", shopEncryptid='" + shopEncryptid + '\'' +
                ", shopCompanyname='" + shopCompanyname + '\'' +
                ", custType='" + custType + '\'' +
                '}';
    }

}